﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GUI
{
    public partial class chucnang : Window
    {
        public chucnang()
        {
            InitializeComponent();
            hoiThoat = false;
        }

        private void btnDatHang_Click(object sender, EventArgs e)
        {
            FormDSDatHang frm = new FormDSDatHang();
            frm.MdiParent = this.MdiParent;
            frm.Show();
        }

        private void btnBanHang_Click(object sender, EventArgs e)
        {
            HoaDonGUI frm = new HoaDonGUI();
            frm.MdiParent = this.MdiParent;
            frm.Show();
        }

        private void btnNhapKho_Click(object sender, EventArgs e)
        {
            FormDSPhieuNhap frm = new FormDSPhieuNhap();
            frm.MdiParent = this.MdiParent;
            frm.Show();
        }

        private void btnSanPham_Click(object sender, EventArgs e)
        {
            FormDSSanPham frm = new FormDSSanPham();
            frm.MdiParent = this.MdiParent;
            frm.Show();
        }

        private void btnQuanLyTV_Click(object sender, EventArgs e)
        {
            FormDSNhanVien frm = new FormDSNhanVien();
            frm.MdiParent = this.MdiParent;
            frm.Show();
        }

        private void btnThoat_Click(object sender, EventArgs e)        {
            
            //Main.ActiveForm.Close();
            Application.Exit();
        }

        private void chucnang_Load(object sender, EventArgs e)
        {
                   
        }
    }
}
